package com.shop.controller;


import com.shop.model.vo.Rsp;
import com.shop.service.IndexImageService;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页轮播图(IndexImage)表控制层
 *
 * @author makejava
 * @since 2020-11-22 13:12:13
 */
@Validated
@RestController
@RequestMapping("indexImage")
@AllArgsConstructor
public class IndexImageController {
    /**
     * 服务对象
     */
    private final IndexImageService indexImageService;

    @GetMapping("getAll")
    public Rsp getAll() {
        return indexImageService.getAll();
    }
}